package com.project.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.project.bean.MouseBean;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 鼠害
 */
public interface MouseDao extends BaseMapper<MouseBean> {

    /**
     *分页显示
     * @return
     */
    IPage<MouseBean> findAllMouse();

    /**
     * 添加
     * @param mouseBean
     */
    void addMouse(MouseBean mouseBean);

    /**
     * id查询
     * @param mouseId
     * @return
     */
    MouseBean findId(@Param("mouseId")int mouseId);

    /**
     * 鼠害名模糊查询
     * @param mouseName
     * @return
     */
    List<MouseBean> findName(@Param("mouseName") String mouseName);
}
